using Assets.Scripts.GDK;
using UnityEngine.UI;

namespace Brick
{
	public class DiamonBox : gdk_base_UI
	{
		public Text text;

		public override void OnLoad()
		{
			gdk_game_manager.AddEventListener<int>(EventID.UPDATA_COIN, showScore);
		}

		public override void UnLoad()
		{
			gdk_game_manager.RemoveEventListener<int>(EventID.UPDATA_COIN, showScore);
		}

		public override void OnStart()
		{
			showScore(0);
		}

		private void showScore(int coin)
		{
			text.text = GameData.coin.ToString();
		}
	}
}

